import request from '@/utils/request'
// 业务Id,业务附件类型获取数据
export function geFileByBiz(params) {
    return request({
      url: '/file/file/getByBiz',
      method: 'get',
      params
    })
}


export function getPreview(params) {
    return request({
      url: '/file/qms/getPreview',
      method: 'post',
      responseType: 'arraybuffer',
      params
    })
}

export function getDownload(params) {
    return request({
      url: '/file/qms/getDownload',
      method: 'post',
      responseType: 'arraybuffer',
      params
    })
}

export function deleteFile(id) {
    return request({
      url: '/file/file/'+ id,
      method: 'delete'
    })
}









